import Vue from 'vue'
import Vuex from 'vuex'
import modulesuser from './m_user'
// 导入持久化存储插件
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  strict: true,
  // 挂载插件,实时监听vuex变化,并且加载到本地存储里
  plugins: [createPersistedState()],
  modules: {
    user: modulesuser
  }
})
